class LoadForecastBean {
  int code;
  String message;
  List<Result> result;
  bool success;
  int timestamp;

  LoadForecastBean(
      {this.code, this.message, this.result, this.success, this.timestamp});

  LoadForecastBean.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    if (json['result'] != null) {
      result = new List<Result>();
      json['result'].forEach((v) {
        result.add(new Result.fromJson(v));
      });
    }
    success = json['success'];
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['message'] = this.message;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['success'] = this.success;
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  var instantFlow;
  String meterId;
  var readStatus;
  String showTime;
  var updateStatus;

  Result(
      {this.instantFlow,
        this.meterId,
        this.readStatus,
        this.showTime,
        this.updateStatus});

  Result.fromJson(Map<String, dynamic> json) {
    instantFlow = json['instantFlow'];
    meterId = json['meterId'];
    readStatus = json['readStatus'];
    showTime = json['showTime'];
    updateStatus = json['updateStatus'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['instantFlow'] = this.instantFlow;
    data['meterId'] = this.meterId;
    data['readStatus'] = this.readStatus;
    data['showTime'] = this.showTime;
    data['updateStatus'] = this.updateStatus;
    return data;
  }
}
